function foo (time){
	return new Promise(function (resolve,reject){
	setTimeout(function(){
		resolve(time)
	},time)
	})
}
const queueList=[foo(2000),foo(100),foo(3000)];